package com.launcher.observer;

import com.launcher.Logger;

import java.util.Observable;
import java.util.Observer;

/**
 * @author wouter
 *         Date: 3/25/13
 *         Time: 2:21 PM
 */
public class LaunchObserver implements Observer {
    private Logger logger;
    private String response;

    public LaunchObserver() {
        logger = new Logger();
    }

    @Override
    public void update(Observable observable, Object o) {
        if (o instanceof String) {
            this.response = (String) o;
            this.logger.normalLevelPrint("\nReceived Response: " + this.response );
        }
    }
}
